MACRO(LOAD_OPENSSL os arch)
    MESSAGE(INFO "-------------LOAD_OPENSSL-------------------")
    SET(OPENSSL_DIR ${PROJECT_SOURCE_DIR}/3rdparty/opensslf)
    MESSAGE(STATUS "PROJECT_SOURCE_DIR: ${PROJECT_SOURCE_DIR}")
    SET(OPENSSL_INCLUDE_DIR ${OPENSSL_DIR}/include)
    SET(OPENSSL_LIBRARY_DIR ${OPENSSL_DIR}/lib64)

    IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
        SET(OPENSSL_LIBS crypto)
    ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
       SET(OPENSSL_LIBS crypto )
    ENDIF (CMAKE_SYSTEM_NAME MATCHES "Linux")

    IF(OPENSSL_INCLUDE_DIR)
        MESSAGE(STATUS "OPENSSL_INCLUDE_DIR : ${OPENSSL_INCLUDE_DIR}")
        MESSAGE(STATUS "OPENSSL_LIBRARY_DIR : ${OPENSSL_LIBRARY_DIR}")
        MESSAGE(STATUS "OPENSSL_LIBS : ${OPENSSL_LIBS}")

    ELSE()
        MESSAGE(FATAL_ERROR "OPENSSL not found!")
    ENDIF()
ENDMACRO()
